import http from '@/http'
import { ListProductParam, ProductModel } from './ProductModel'

export const addUserApi = (param:ProductModel) => {
    return http.post("/api/product",param)
}

export const getListApi = (param:ListProductParam) => {
    return http.get("/api/product/list",param)
}

export const editUserApi = (param:ProductModel) => {
    return http.put("/api/product",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/product/${id}`)
}
